
package model.math;

import model.info.bigCrimeChance;
import model.info.simpleCrimeChance;
import bean.CharacterBEAN;

public class Chance {
	private CharacterBEAN	characterBEAN;

	public Chance( CharacterBEAN characterBEAN ) {
		this.characterBEAN = characterBEAN;
	}

	public String simpleCrimeChances() {
		String rank = characterBEAN.getLevelName( characterBEAN.getLevel() );
		for( simpleCrimeChance scc : simpleCrimeChance.values() ) {
			if( rank.equals( scc.name() ) ) { return "s1=" + scc.getS1()
					+ ", s2=" + scc.getS2() + ", s3=" + scc.getS3() + ", s4="
					+ scc.getS4() + ", s5=" + scc.getS5(); }
		}
		return "s1=00, s2=00, s3=00, s4=00, s5=00.";
	}

	public String bigCrimeChances() {
		String rank = characterBEAN.getLevelName( characterBEAN.getLevel() );
		for( bigCrimeChance bcc : bigCrimeChance.values() ) {
			if( rank.equals( bcc.name() ) ) { return "s1=" + bcc.getS1()
					+ ", s2=" + bcc.getS2() + ", s3=" + bcc.getS3(); }
		}
		return "s1=00, s2=00, s3=00.";
	}
}